package com.sunyard.domee.api;


import com.sunyard.domee.commons.model.RPCResultModel;
import com.sunyard.domee.response.MarketingCouponResponse;

import java.util.List;
import java.util.Set;

/**
 * 优惠券查询
 *
 * @author xw
 * @email wei.xiao hiperasiachile çæææ
 * @date 2020-05-26 20:48:42
 */
public interface MarketingCouponQueryApi {


    /**
     * 查询有效优惠券
     * @param id
     * @return
     */
    RPCResultModel<MarketingCouponResponse> findEffective(Long id);


    /**
     * 查询有效优惠券
     * @param id
     * @return
     */
    RPCResultModel<List<MarketingCouponResponse>> findEffectiveSet(Set<Long> id);



    /**
     * 名称查询有效优惠券
     * @param couponName
     * @return
     */
    RPCResultModel<List<MarketingCouponResponse>> findCouponByName(String couponName);

}
